#include<iostream>
#include<sys/types.h>
#include<sys/stat.h>
#include<cassert>
#include<unistd.h>
#include<cerrno>
#include<cstdio>
#include<cstring>
#include<fcntl.h>
#define FIFONAME "./fifo"
#define MYMODE 0666 
#define SIZE 1024